//
//  ViewController.m
//  BaseModule
//
//  Created by 于鹏 on 2017/8/7.
//  Copyright © 2017年 YIVIEW. All rights reserved.
//

#import "ViewController.h"
#import "DetailViewController.h"
#import "UIWindow+FunHierarchy.h"
#import <SVProgressHUD.h>
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    UIViewController *currentVC = [[UIApplication sharedApplication].keyWindow fun_currentViewController];
    NSLog(@"currentVC:%@",currentVC);
    NSBundle *bundle = [NSBundle bundleForClass:[SVProgressHUD class]];
    NSURL *url = [bundle URLForResource:@"SVProgressHUD" withExtension:@"bundle"];
    NSBundle *imageBundle = [NSBundle bundleWithURL:url];
    NSLog(@"bundle:%@",imageBundle);
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    [self.navigationController pushViewController:[DetailViewController new] animated:YES];
    [SVProgressHUD showSuccessWithStatus:@"121212"];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
